/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aiaudio.processing.prediction.recalc;

/**
 *
 * @author nastya
 */
public class GroupDistance {

    private String groupId;
    private double distance;

    public GroupDistance(String groupId, double distance) {
        this.groupId = groupId;
        this.distance = distance;
    }

    public double getDistance() {
        return distance;
    }

    public String getGroupId() {
        return groupId;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final GroupDistance other = (GroupDistance) obj;
        if (this.groupId != other.groupId && (this.groupId == null || !this.groupId.equals(other.groupId))) {
            return false;
        }
        return true;
    }

    
}
